#pragma once

#include "Task.h"
#include "TcpConnection.h"

class LoginGetcrypt:public Task{
public: 
LoginGetcrypt(const string msg, TcpConnectionPtr conn);
void process();
private:
bool isMatch(const string & msg);
bool parseString(const string & msg, string & crypt, string & username);
private:
    const string _msg;
    TcpConnectionPtr _conn;
};

